package com.hotel.ordersystem.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 评论对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentMongoDB implements Serializable {

    private static final long serialVersionUID = 1764397097972553127L;
    //评论id 不需要设置 mongoDB 自动生成
    private String id;
    //评论文本内容
    private String text;
    //评论图片
    private List<String> images;
    //评论用户头像
    private String userPhoto;
    //评论的用户id
    private Integer userId;
    //评论的用户昵称
    private String userName;
    //评论的酒店id
    private String hotelId;
    //评论的订单id
    private String orderId;
    //评论时间
    private LocalDateTime commentTime;
    //是否显示 1显示 0不显示
    private Integer isVisible;
    //评论评分
    private String score;
}
